package com.deyang.mycommon.ui.activity.study;

import android.os.Bundle;

import com.deyang.mycommon.R;
import com.deyang.mycommon.config.ConfigRes;
import com.deyang.mycommon.ui.baseui.BaseActivity;
import com.github.barteksc.pdfviewer.PDFView;

import java.io.File;

import butterknife.BindView;
import butterknife.ButterKnife;

public class PDFViewActivity extends BaseActivity {


    @BindView(R.id.pdfView)
    PDFView pdfView;

    @Override
    protected void initView(Bundle savedInstanceState) {
        setContentView(R.layout.activity_pdfview);
        ButterKnife.bind(this);

    }

    @Override
    protected void processLogic(Bundle savedInstanceState) {
        File file = new File(ConfigRes.SDCARD_PATH + "/pdftest", "test.pdf");
//        pdfView.fromFile(file);

        pdfView.fromAsset("test.pdf").load();
    }

}
